package org.example.struct.array;

/**
 * @author liyishan
 * @date 2024/8/13 09:58
 * @apiNote
 */

public class Test03151IsArraySpecial {
    public boolean isArraySpecial(int[] nums) {
        for(int i = 1; i < nums.length; i++){
            if(nums[i] % 2 == nums[i-1] % 2){
                return false;
            }
        }
        return true;
    }
}
